package com.it.zhangjun.design.pattern.observer;

/**
 * @className: ImportedRedDeliciousApple
 * @description: 进口蛇果
 * @author: z00018123
 * @date: 2021/4/29
 **/
public class ImportedRedDeliciousApple extends FruitObservable {

    @Override
    protected void notifyObserver() {
        System.out.println("通知: 进口蛇果已到...");
        for (Observer observer : this.observers) {
            //  通知每位客户
            observer.update();
        }
    }
}
